package CoreNRMSystem;
/**
 * Generated from IDL enum "DestType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class DestType
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _International_dest = 0;
	public static final DestType International_dest = new DestType(_International_dest);
	public static final int _National_dest = 1;
	public static final DestType National_dest = new DestType(_National_dest);
	public static final int _Provincial_dest = 2;
	public static final DestType Provincial_dest = new DestType(_Provincial_dest);
	public static final int _Local_dest = 3;
	public static final DestType Local_dest = new DestType(_Local_dest);
	public static final int _Other_dest = 4;
	public static final DestType Other_dest = new DestType(_Other_dest);
	public int value()
	{
		return value;
	}
	public static DestType from_int(int value)
	{
		switch (value) {
			case _International_dest: return International_dest;
			case _National_dest: return National_dest;
			case _Provincial_dest: return Provincial_dest;
			case _Local_dest: return Local_dest;
			case _Other_dest: return Other_dest;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _International_dest: return "International_dest";
			case _National_dest: return "National_dest";
			case _Provincial_dest: return "Provincial_dest";
			case _Local_dest: return "Local_dest";
			case _Other_dest: return "Other_dest";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected DestType(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
